def word_to_number(word):
    numbers = {'zero': '0', 'one': '1', 'two': '2', 'three': '3', 'four': '4', 'five': '5', 'six': '6', 'seven': '7', 'eight': '8', 'nine': '9'}
    return numbers[word]

def words_to_number(words):
    word_list = words.split()
    number_str = ''.join([word_to_number(word) for word in word_list])
    return int(number_str)

words = input("Введите три слова: ")
result = words_to_number(words)
print("Число, образованное из введенных слов:", result)
